<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\UserInfo
 *
 * @property integer $id 标识
 * @property integer $user_id 关联用户id
 * @property string $nick 昵称
 * @property integer $sexual 性别
 * @property string $qq_num QQ号
 * @property string $province 省
 * @property string $city 市
 * @property string $area 区
 * @property integer $portrait_id 头像图片id
 * @property string $deleted_at
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property-read \App\User $user
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereNick($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereSexual($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereQqNum($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereProvince($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereCity($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereArea($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo wherePortraitId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property string $realname 真实姓名
 * @property string $phone 手机号码
 * @property integer $status 状态，0：未填写，1:填写完成
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereRealname($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo wherePhone($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereStatus($value)
 * @property string $birthday
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereBirthday($value)
 * @property string $desc 患者描述
 * @method static \Illuminate\Database\Query\Builder|\App\UserInfo whereDesc($value)
 */
class UserInfo extends Model {

    protected $table = 'user_info';
    use SoftDeletes;

    /**
     * 用户表关联
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function user(){
        return $this->belongsTo('App\User','user_id');
    }
}
